package com.service.impl;

import com.mapper.RepairstateMapper;
import com.pojo.Repairstate;
import com.service.RepairstateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("repairstateService")
public class RepairstateServiceImpl implements RepairstateService {
    @Resource
    private RepairstateMapper repairstateMapper;
    @Override
    public List<Repairstate> selectAllReparstate() {
        List<Repairstate> repairstateList = repairstateMapper.selectAllReqair();
        return repairstateList;
    }

    @Override
    public Repairstate selectReparstateById(Integer id) {
        Repairstate repairstate = repairstateMapper.selectByPrimaryKey(id);
        return repairstate;
    }
}
